@import "module";
//商品列表
.goodList{
    background-color: #fff;
    overflow: hidden;
    border-top: 2px solid #41cc6e;
    .goodTitle{
        height: 125px;
        p{
            text-indent: 1em;
            line-height: 40px;
            font-size: 14px;
            border-bottom: 1px solid #e7e7e7;   
            &:last-of-type{
                border: none;
            }
        }
    }
}
.allGoods{
    margin-top: 20px;
    &_inner{
        overflow: hidden;
        .base_up{
            float: left;
            width: 224px;
            height: 360px;
            background-color: #fff;
            margin-left: 20px;
            margin-bottom: 20px;
            text-align: center;
            overflow: hidden; //隐藏掉图片的圆角
            border-radius: 5px;
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            -ms-border-radius: 5px;
            -o-border-radius: 5px;
            &:hover{
                box-shadow: 0 15px 30px rgba(0,0,0,.2);
                transform: translateY(-2px);
                -webkit-transform: translateY(-2px);
                -moz-transform: translateY(-2px);
                -ms-transform: translateY(-2px);
                -o-transform: translateY(-2px);
                transition: all.2s;
                -webkit-transition: all.2s ease-out;
                -moz-transition: all.2s ease-out;
                -ms-transition: all.2s ease-out;
                -o-transition: all.2s ease-out;
            }
            .img_outer{
                width: 200px;
                height: 200px;
                display: inline-block;//为了居中
                overflow: hidden;
                a{
                    display: block;
                    height: 100%;
                    img{
                        width: 200px;
                        transition: all .3s;
                        -webkit-transition: all .3s;
                        -moz-transition: all .3s;
                        -ms-transition: all .3s;
                        -o-transition: all .3s;
                        &:hover{
                            transform: scale(1.02);
                            -webkit-transform: scale(1.02);
                            -moz-transform: scale(1.02);
                            -ms-transform: scale(1.02);
                            -o-transform: scale(1.02);
                        }
                    }
                }
               
            }
            .good_dsc{
                width: 190px;
                display: inline-block;
                overflow: hidden;
                text-align: center;
                cursor: pointer;
                h2{
                    font-size: 16px;
                    font-weight: bold;
                    margin-top: 10px;
                    width: 200px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
                h3{
                    font-size: 12px;
                    color: #666;
                    margin: 10px 0;
                    width: 200px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
                p{
                    color: red;
                    font-size: 20px;
                    font-family: fantasy;
                    margin-bottom: 10px;
                    del{
                        font-size: 14px;
                        font-family: serif;
                        color: #666;
                        margin: 0 5px;
                    }
                }
                button{
                    
                    width: 135px;
                    height: 35px;
                    font-size: 16px;
                    border-radius: 5px;
                    -webkit-border-radius: 3px;
                    -moz-border-radius: 3px;
                    -ms-border-radius: 3px;
                    -o-border-radius: 3px;
                    color: white;
                    background-color: #41cc6e;
                    cursor: pointer;
                    &:hover{
                        background-color: #ff9800;
                    }
                    
                }
            }
            &:nth-of-type(5n+1){ //每排5个，每排第一个去掉左外边距
                margin-left: 0;
            }
        }
        .over{
            text-align: center;
            color: #666;
            span{
                margin: 0 20px;
            }
            margin-bottom: 20px;
        }
    }
}





